package com.qingcloud.api.dcengine.model.sdata;

import com.qingcloud.api.dcengine.model.BasePageParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Collection;

/**
 * 监测点数据通用分页参数对象
 */
@Getter
@Setter
@Accessors(chain = true)
public class StationMaxValueOrderPageParam extends BasePageParam {

    @ApiModelProperty(value = "监测点编号列表", required = true)
    private Collection<String> stationIdList;

    @ApiModelProperty(value = "污染物类型，例如pm25,pm10", required = true)
    private String pollution;

    /**
     * 获取列表参数对象，用于查数据情况
     */
    public StationDataListParam buildListParam() {
        StationDataListParam stationDataListParam = new StationDataListParam();
        stationDataListParam.setStationIdList(this.getStationIdList());
        stationDataListParam.setStartTime(this.getStartTime());
        stationDataListParam.setEndTime(this.getEndTime());
        stationDataListParam.setSort(this.getSort());
        return stationDataListParam;
    }
}
